<?php
// +----------------------------------------------------------------------
// | Bwsaas
// +----------------------------------------------------------------------
// | Copyright (c) 2015~2020 http://www.buwangyun.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Gitee ( https://gitee.com/buwangyun/bwsaas )
// +----------------------------------------------------------------------
// | Author: buwangyun <hnlg666@163.com>
// +----------------------------------------------------------------------
// | Date: 2020-9-28 10:55:00
// +----------------------------------------------------------------------

namespace app\common\model;

use buwang\base\BaseModel;

/**
 * 租户插件订单表
 * Class MemberPluginOrder
 * @package app\common\model
 */
class MemberPluginOrder extends BaseModel
{
    /**
     * 租户联表
     * @return \think\model\relation\BelongsTo
     */
    public function member()
    {
        return $this->belongsTo('\app\common\model\Member', 'member_id', 'id')->hidden(['openid','parent_id','password','safe_password','ticket','top_id','create_time']);
    }

    /**
     * 插件联表
     * @return \think\model\relation\BelongsTo
     */
    public function plugin()
    {
        return $this->belongsTo('\app\manage\model\admin\Plugin', 'plugin_id', 'id');
    }
}